﻿#include <QCoreApplication>

#include "handler.h"

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);

    Handler *handler = new Handler();

    QString input_1 = "1 and 1";
    QString input_2 = "1 and 0";
    QString input_3 = "0 and 1";
    QString input_4 = "0 and 0";
    QString input_5 = "0 or 0";
    QString input_6 = "0 or 1";
    QString input_7 = "1 or 0";
    QString input_8 = "1 or 1";
    QString input_9 = "1 and 0 or 1";
    QString input_10 = "0 or 0 and 1";
    QString input_11 = "1 or 1 and 1 and 0";
    QString input_12 = "0 and 1 and 1 and 1";
    QString input_13 = "0 and 1 and 1 and 1 or 1 or 0 and 1";

    handler->setInput(input_1); handler->handle();
    handler->setInput(input_2); handler->handle();
    handler->setInput(input_3); handler->handle();
    handler->setInput(input_4); handler->handle();

    handler->setInput(input_5); handler->handle();
    handler->setInput(input_6); handler->handle();
    handler->setInput(input_7); handler->handle();
    handler->setInput(input_8); handler->handle();
    handler->setInput(input_9); handler->handle();
    handler->setInput(input_10); handler->handle();
    handler->setInput(input_11); handler->handle();
    handler->setInput(input_12); handler->handle();
    handler->setInput(input_13); handler->handle();

    return a.exec();
}
